#include "ShootAbility.h"

unsigned int ShootAbility::id = 0;

ShootAbility::ShootAbility(Shootable* receiver): shooter(receiver)
{
	InitializeId(&id);
}

ShootAbility::ShootAbility(): shooter(0)
{
	InitializeId(&id);
}

ShootAbility::ShootAbility(const ShootAbility& rhs): shooter(rhs.shooter)
{

}

ShootAbility::~ShootAbility()
{
}


unsigned int ShootAbility::Id()
{
	return id;
}

void ShootAbility::Activate()
{ 
	if (shooter) 
		shooter->Shoot();
}

GameAbility* ShootAbility::Clone() const
{
	return new ShootAbility(*this);
}
